package view.views.dialogContentViews;

import java.awt.FlowLayout;

import javax.swing.BoxLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;

import model.Constants;
import view.components.SubnetComboBox;

public class AddIpByListPanel extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private final JPanel variable;
	private final SubnetComboBox subnetCombo = new SubnetComboBox();

	public AddIpByListPanel() {

		this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));

		JPanel contentPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));

		JLabel title = new JLabel(Constants.CHOOSESUBNET);

		contentPanel.add(title);
		this.add(contentPanel);

		JPanel subnetBoxPanel = new JPanel(contentPanel.getLayout());

		subnetBoxPanel.add(subnetCombo);

		this.add(subnetBoxPanel);

		variable = new JPanel();


	}

	public JPanel getIpListPanel() {
		return variable;
	}

	public SubnetComboBox getSubnetComboBox() {
		return subnetCombo;
	}

}
